const fs = require('fs');

// console.log(__dirname);

fs.writeFileSync(`${__dirname}/test.txt`, 'hello world', (err) => {
	if (err) {
		console.log('🌈 —— data-err --->', err);
	}
	console.log('文件写入成功!');
});
